package org.mspring.platform.mail;

/**
 * @author Gao Youbo
 * @since 2014年4月12日
 */
public class MailTest {
    public static void main(String[] args) {
        MailService ms = new MailService();
        ms.setMailSenderConfig(new MailSenderConfig() {

            @Override
            public String getUsername() {
                return "test@mspring.org";
            }

            @Override
            public boolean getSSLEnable() {
                return false;
            }

            @Override
            public int getPort() {
                return 25;
            }

            @Override
            public String getPassword() {
                return "12345qwert?";
            }

            @Override
            public String getHost() {
                return "smtp.exmail.qq.com";
            }

            @Override
            public String getFrom() {
                return "test@mspring.org";
            }

            @Override
            public String getEncoding() {
                return "UTF-8";
            }
        });
        ms.sendMail("330721072@qq.com", "高尤波", "测试", "测试内容");
    }
}
